#pragma once
#include "car.h"
class SportsCar :
	public Car
{
public:
	SportsCar(void):Car(){maxSpeed = 0;}
	SportsCar(string brand, int year, int seats, int doors, double maxSpeed):
		Car(brand, year, seats, doors){this->maxSpeed = maxSpeed;}
	~SportsCar(void);
	void SetMaxSpeed(double maxSpeed){this->maxSpeed = maxSpeed;}
	double GetMaxSpeed(){return maxSpeed;}
	void print()
	{
		Car::print();
		cout << maxSpeed << endl;
	}
private:
	double maxSpeed;
};

